#include<iostream>

#include<stdio.h>

#include <sys/types.h>

#include <sys/stat.h>

#include <fcntl.h>

#include <unistd.h>

#include<stdlib.h>

using namespace std;

#define FIFO_FILE "./myfifo"

#define MODE 0777

#define SIZE 1024

enum
{
    FIFO_CREATE_ERR = 1,
    FIFO_DELETE_ERR,
    FIFO_OPEN_ERR,
    FIFO_READ_ERR
};